cmake_minimum_required(VERSION 2.6)
PROJECT(proto)

execute_process(COMMAND sh prebuild.sh)

AUX_SOURCE_DIRECTORY(./ SRC_LIST)

SET(CMAKE_C_COMPILER "gcc")
SET(CMAKE_CXX_COMPILER "g++")

SET(LIBRARY_OUTPUT_PATH ./)

ADD_DEFINITIONS(-ggdb -O3 -W -Wall -Wno-deprecated -Wno-unused-parameter -Wno-unused-variable -std=c++11 -fstack-protector-all)  

INCLUDE_DIRECTORIES(./)

ADD_LIBRARY(proto STATIC ${SRC_LIST})

TARGET_LINK_LIBRARIES(proto)
